<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
     //基本数据类型：布尔，数值，字符，null，未定义
        let num1 = 123,num2= '123';
        console.log(num1==num2);   //true,等于。符号两边会自动进行数据类型转换
        console.log(num1===num2);  //false,全等于。符号两边不会进行数据类型转换
        let flag1,flage2;
        flage1 = (true) || (3>2);
        //判断闰年：能被400整除，或者能被4整除但不能被100整除
        //取两个值之间的最大值
        //三元运算符：条件表达式？true的值；false的值
        //let x = prompt(); 
        //let y = prompt();
        //let result = x>y?x:y;
        //console.log(result);
        console.log('--------------');
        let year = prompt();
        let isR = (year%400===0)||(year%4===0 && year%100 !=0)?year+'闰年':year+'平年';
        console.log(isR);

        
</script>
</html>